<div class="left content_right">
	<form action="?a=ACC&acc=USER&user=ALBU&albu=I" method="post" id="frm_album">
		<input class="input" type="hidden" name="hdn_album_id" id="hdn_album_id" value="<?php echo $edit_album_id; ?>">
		<?php
			if (isset($_SESSION['error_message']) && $_SESSION['error_message'])
				echo '<div class="error">'.$_SESSION['error_message'].'</div>';
		?>
		<div class="large_title"><?php echo _LB_ALBUM_PAGE ?></div>
		<?php echo $v_dsp_album_list;?>
		<br/><br/>
		<div class="legend" id="edit_content">
			<div class="legend_title"><?php echo _LB_ALBUM_PAGE ?></div><br/><br/>
			<div class="left w100"><?php echo _LB_ALBUM_TITLE . _LB_REQUIRED ?></div>
			<div class="left">
				<input class="input" type="text" name="album_title" id="album_title" value="<?php echo $album_title; ?>">
			</div>
			<div class="clear">&nbsp;</div>
			<div class="left w100"><?php echo _LB_ALBUM_DETAIL ?></div>
			<div class="left">
				<textarea class="textarea" type="text" name="album_detail" id="album_detail"><?php echo $album_detail; ?></textarea>
			</div>
			<div class="clear">&nbsp;</div>
			<div align ="center">
				<a class="button blue" href="javascript:void(0)" onclick="submit();"><span class="label"><?php echo _LB_UPDATE;?></span></a>
			</div>
			<div class="clear">&nbsp;</div>
		</div>
	</form>
</div>
<script type="text/javascript">
	
	function dsp_image(id , link){
		var img_obj = $('#img_'+id);
		var title = img_obj.attr('alt');
		head.ready(function(){
			$.fancybox({
				'padding'		: 0,
				'href'			: '<?php echo URL?>lib/upload/' + link,
				'title'   		: title,
				'transitionIn'	: 'elastic',
				'transitionOut'	: 'elastic'
			});
		})
	}
	
	function submit (){
		var album_title = $('#album_title');
		
		if ( isEmptyTextBox( album_title , '<?php echo _ERROR_MSG_ALBUM_TITLE_NOT_EMPTY; ?>' ) ){
			return false;
		}

		$('#frm_album').submit();
	}
</script>
<div class="clear">&nbsp;</div>